// 管理订单的仓库
import { requestGet } from "../utils/Request.js";
export default ({
    namespaced:true,
    state: {
        orderList:[]
    },
    mutations: {
        getOrder(state,playload){
            state.orderList=playload
        }
    },
    actions: {
        async getOrder({ commit },playload){
            const res=await requestGet('/order',playload)
            commit('getOrder',res.data.result)
        }
    },
})